import logging
import time

logging.basicConfig(filemode='a',
                    filename='.\log\{}.log'.format(time.strftime('%Y_%m_%d')),
                    level=logging.INFO,
                    format='%(asctime)s %(levelname)s %(filename)s@[line:%(lineno)d]: %(message)s',
                    datefmt='%Y-%m-%d %H:%M:%S')
